package com.itheima.jdk8date;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/*
获取对象的方法
 */
public class Demo01 {


    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        System.out.println(now);//精确到纳秒
        LocalDate date = LocalDate.of(2048, 12, 13);
        System.out.println(date);
        //new Date()


    }
}
